package com.manong.bookstore.shoppingcart.feign;

import com.manong.common.utils.R;
import com.manong.bookstore.shoppingcart.entity.ProduceEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient("bookstore-produce")
public interface ProductFeignService {
    @RequestMapping("/produce/produce/list")
    public R list(@RequestParam Map<String, Object> params);

    @RequestMapping("/produce/produce/update")
    public R update(@RequestBody ProduceEntity produce);

    @RequestMapping("/produce/produce/info/{produceId}")
    public R info(@PathVariable("produceId") Integer produceId);
}
